package com.guaju.yueshangLife.activity.setting;

import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;

import com.guaju.yueshangLife.R;
import com.guaju.yueshangLife.base.BaseActivity;
import com.guaju.yueshangLife.databinding.ActivityAcountSafeBinding;
import com.guaju.yueshangLife.utils.PreferenceUtil;

public class AcountSafeActivity extends BaseActivity {


    private ActivityAcountSafeBinding binding;

    @Override
    protected void loadViewLayout() {
        binding = DataBindingUtil.setContentView(this, R.layout.activity_acount_safe);
        String contact_phone = PreferenceUtil.getFphone();
        if ((!TextUtils.isEmpty(contact_phone)) && contact_phone.length() == 11) {
            String screteTel = contact_phone.substring(0, 3) + "****" + contact_phone.substring(7, 11);
            binding.tvEditTel.setRightTv(screteTel);
        }
    }

    @Override
    protected void bindViews() {

    }

    @Override
    protected void processLogic(Bundle savedInstanceState) {

    }

    @Override
    protected void setListener() {
        binding.tvEditTel.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(AcountSafeActivity.this,EditTelnumActivity.class);
                startActivity(intent);
            }
        });

    }
}
